package com.yuedou.api.util;

import org.springframework.util.DigestUtils;

public class SecKillUtil {

    private final static String salt = "sadjgio@123qwlutoiu293480523*&%*&*#";

    public static String getMD5(long seckillId) {
        String base = seckillId + "/" + salt;
        String md5 = DigestUtils.md5DigestAsHex(base.getBytes());
        return md5;
    }
}
